QT       += core gui network sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    entities/message/applyFriend/applyfriendrequestmessagetoclient.cpp \
    entities/message/applyFriend/applyfriendrequestmessagetoserver.cpp \
    entities/message/applyFriend/applyfriendresponsemessagetoclient.cpp \
    entities/message/applyFriend/applyfriendresponsemessagetoserver.cpp \
    entities/message/applyFriend/getapplicationfromserver.cpp \
    entities/message/applyFriend/getapplicationresultfromserver.cpp \
    entities/message/chat/chatmessagetoclient.cpp \
    entities/message/chat/chatmessagetoserver.cpp \
    entities/message/chat/getchatmessagefromserver.cpp \
    entities/message/login/loginrequestmessage.cpp \
    entities/message/login/loginresponsemessage.cpp \
    entities/message/logout/logoutrequestmessage.cpp \
    entities/message/logout/logoutresponsemessage.cpp \
    entities/message/register/registerrequestmessage.cpp \
    entities/message/register/registerresponsemessage.cpp \
    entities/message/searchUser/searchuserrequestmessage.cpp \
    entities/message/searchUser/searchuserresponsemessage.cpp \
    entities/message/superClass/message.cpp \
    entities/message/synchronize/requestbufferdatamessage.cpp \
    entities/message/videoCall/videocallfinished.cpp \
    entities/message/videoCall/videorequesttoclient.cpp \
    entities/message/videoCall/videorequesttoserver.cpp \
    entities/message/videoCall/videoresponsetoclient.cpp \
    entities/message/videoCall/videoresponsetoserver.cpp \
    main.cpp \
    tools/data/contentdealer.cpp \
    tools/data/encryptor.cpp \
    tools/database/dataaccessor.cpp \
    tools/database/dbconnectionpool.cpp \
    tools/database/servicemanager.cpp \
    tools/logic/datahandler.cpp \
    tools/network/clientconnector.cpp \
    widgets/mainwindow.cpp

HEADERS += \
    entities/constants.h \
    entities/dbqueryresult.h \
    entities/message/applyFriend/applyfriendrequestmessagetoclient.h \
    entities/message/applyFriend/applyfriendrequestmessagetoserver.h \
    entities/message/applyFriend/applyfriendresponsemessagetoclient.h \
    entities/message/applyFriend/applyfriendresponsemessagetoserver.h \
    entities/message/applyFriend/getapplicationfromserver.h \
    entities/message/applyFriend/getapplicationresultfromserver.h \
    entities/message/chat/chatmessagetoclient.h \
    entities/message/chat/chatmessagetoserver.h \
    entities/message/chat/getchatmessagefromserver.h \
    entities/message/login/loginrequestmessage.h \
    entities/message/login/loginresponsemessage.h \
    entities/message/logout/logoutrequestmessage.h \
    entities/message/logout/logoutresponsemessage.h \
    entities/message/register/registerrequestmessage.h \
    entities/message/register/registerresponsemessage.h \
    entities/message/searchUser/searchuserrequestmessage.h \
    entities/message/searchUser/searchuserresponsemessage.h \
    entities/message/superClass/message.h \
    entities/message/synchronize/requestbufferdatamessage.h \
    entities/message/videoCall/videocallfinished.h \
    entities/message/videoCall/videorequesttoclient.h \
    entities/message/videoCall/videorequesttoserver.h \
    entities/message/videoCall/videoresponsetoclient.h \
    entities/message/videoCall/videoresponsetoserver.h \
    entities/messageentities.h \
    tools/data/contentdealer.h \
    tools/data/encryptor.h \
    tools/database/dataaccessor.h \
    tools/database/dbconnectionpool.h \
    tools/database/servicemanager.h \
    tools/logic/datahandler.h \
    tools/network/clientconnector.h \
    widgets/mainwindow.h

FORMS += \
    widgets/mainwindow.ui

TRANSLATIONS += \
    XyChatServer_zh_CN.ts
CONFIG += lrelease
CONFIG += embed_translations

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
